<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.5.0/axios.js"></script>
  </head>
  <body>
    <script>
      axios({
        method: "get",
        url: "/api/0486655e042121f433b5a4f0fc869099ce1a590932c650b2ca85d6b2555622a4.pdf",
        responseType: "blob",
      }).then((res) => {
        const r = new FileReader();
        r.readAsDataURL(res.data);
        r.onload = function () {
          const a = document.createElement("a");
          a.download = "test.pdf";
          a.href = r.result;
          document.body.appendChild(a);
          a.click();
          document.body.removeChild(a);
        };
      });
    </script>
  </body>
</html>
